#include "Message.P2.GetQuotes.h"

namespace AlgoTrading
{
	namespace Messages
	{
		P2GetQuotes::P2GetQuotes(void)
			: RequestWithResponse(std::auto_ptr<PBClientMessage>(new PBClientMessage()))
		{
			getQuotes = requestWithResponse->MutableExtension(PBP2GetQuotes::requestWithResponse);
			requestWithResponse->set_type(PBRequestWithResponse_Type_PBP2GetQuotes);
		}

		P2GetQuotes::~P2GetQuotes(void)
		{
		}

		P2GetQuotes::P2GetQuotes(std::auto_ptr<PBClientMessage>& message)
			: RequestWithResponse(message)
		{
			getQuotes = requestWithResponse->MutableExtension(PBP2GetQuotes::requestWithResponse);
		}


		void P2GetQuotes::SetSequrityId(::google::protobuf::int32 securityId)
		{
			getQuotes->set_securityid(securityId);
		}

		::google::protobuf::int32 P2GetQuotes::GetSequrityId() const
		{
			return getQuotes->securityid();
		}

		RequestWithResponse::RequestWithResponseMessageType P2GetQuotes::GetRequestWithResponseMessageType() const
		{
			return RequestWithResponse::GET_QUOTES;
		}

	}
}
